package cn.edu.scau.cmi.liujiaming.chapter05;

public class Rectangle {
	double x,y,height,width;
	void setX(double a) {
		x=a;
	}
	void setY(double b) {
		y=b;
	}
	void setHeight(double h) {
		if(h>0)
			height=h;
	}
	void setWidth(double w) {
		if(w>0)
			width=w;
	}
	double getX() {
		return x;
	}
	double getY() {
		return y;
	}
	double getHeight() {
		return height;
	}
	double getWidth() {
		return width;
	}
}
